package cn.rongdao.jrkabao.ui.remind.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import java.util.List;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.widget.timeselected.BaseWheelTextAdapter;


/**
 * Created by WANG on 18/3/8
 */

public class DayAdapter extends BaseWheelTextAdapter {

    List<String> list;

    public DayAdapter(Context context, List<String> list, int currentItem, int maxsize, int minsize) {
        super(context, R.layout.layout_timeselected, NO_RESOURCE, currentItem, maxsize, minsize);
        this.list = list;
        setItemTextResource(R.id.tempValue);
    }

    @Override
    public View getItem(int index, View cachedView, ViewGroup parent) {
        View view = super.getItem(index, cachedView, parent);
        return view;
    }

    @Override
    public int getItemsCount() {
        return list.size();
    }

    @Override
    public CharSequence getItemText(int index) {
        return list.get(index);
    }
}
